package com.lzh.persevere.controller;

import com.lzh.persevere.common.R;
import com.lzh.persevere.common.ResultUtil;
import com.lzh.persevere.model.qo.comment.CommentPageQO;
import com.lzh.persevere.model.qo.comment.ExpandSubCommentQO;
import com.lzh.persevere.model.ro.comment.CommentIdRO;
import com.lzh.persevere.model.ro.comment.LikeCommentRO;
import com.lzh.persevere.model.ro.comment.SendCommentRO;
import com.lzh.persevere.model.vo.comment.CommentVO;
import com.lzh.persevere.service.CommentService;
import com.lzh.persevere.service.LikeInfoService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.validation.Valid;
import java.util.Map;

/**
 * 点赞controller
 *
 * @author luzhiheng
 * @since 2025-07-13
 */
@RestController
@RequestMapping("/likeInfo")
public class LikeInfoController {

    @Resource
    private LikeInfoService likeInfoService;

    @Resource
    private CommentService commentService;

    @ApiOperation(value = "点赞评论")
    @PostMapping("/likeComment")
    public R<Boolean> likeComment(@Valid @RequestBody LikeCommentRO ro) {
        return ResultUtil.success(likeInfoService.likeComment(ro));
    }

}
